package com.gym.service;

import com.github.pagehelper.PageInfo;
import com.gym.pojo.Cattype;
import com.gym.pojo.User;

import java.util.List;

public interface UserService {

    public List<User> listUser(String name);

    public PageInfo<User> selListUser(String name, int index, int size);
    public PageInfo<User> selectsj(String username, int userId,int index,int size);

    public boolean insUser(User user);

    public boolean updUser(User user);
    public boolean delUserById(int userId);

    public int selByAccount(String account);

    public boolean selUserBypwd(int userId,String pwd);

    public boolean updUserBypwd(int userId,String pwd);

    public boolean UpdMemIdById(int userId);//修改用户为会员

    public int selUserIdByAcc(int account);//根据用户账号查询用户是否存在

}
